Optimal. Leaf size=296 \[ \frac {(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f}-\frac {(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f}+\frac {2 d (c+d x) \text {PolyLog}\left (2,-\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^2}-\frac {2 d (c+d x) \text {PolyLog}\left (2,-\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^2}-\frac {2 d^2 \text {PolyLog}\left (3,-\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^3}+\frac {2 d^2 \text {PolyLog}\left (3,-\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.47, antiderivative size = 296, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 6, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {3403, 2296,
2221, 2611, 2320, 6724} \begin {gather*} \frac {2 d (c+d x) \text {Li}_2\left (-\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{f^2 \sqrt {a^2+b^2}}-\frac {2 d (c+d x) \text {Li}_2\left (-\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{f^2 \sqrt {a^2+b^2}}+\frac {(c+d x)^2 \log \left (\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}+1\right )}{f \sqrt {a^2+b^2}}-\frac {(c+d x)^2 \log \left (\frac {b e^{e+f x}}{\sqrt {a^2+b^2}+a}+1\right )}{f \sqrt {a^2+b^2}}-\frac {2 d^2 \text {Li}_3\left (-\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{f^3 \sqrt {a^2+b^2}}+\frac {2 d^2 \text {Li}_3\left (-\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{f^3 \sqrt {a^2+b^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2296
Rule 2320
Rule 2611
Rule 3403
Rule 6724
Rubi steps
\begin {align*} \int \frac {(c+d x)^2}{a+b \sinh (e+f x)} \, dx &=2 \int \frac {e^{e+f x} (c+d x)^2}{-b+2 a e^{e+f x}+b e^{2 (e+f x)}} \, dx\\ &=\frac {(2 b) \int \frac {e^{e+f x} (c+d x)^2}{2 a-2 \sqrt {a^2+b^2}+2 b e^{e+f x}} \, dx}{\sqrt {a^2+b^2}}-\frac {(2 b) \int \frac {e^{e+f x} (c+d x)^2}{2 a+2 \sqrt {a^2+b^2}+2 b e^{e+f x}} \, dx}{\sqrt {a^2+b^2}}\\ &=\frac {(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f}-\frac {(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f}-\frac {(2 d) \int (c+d x) \log \left (1+\frac {2 b e^{e+f x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{\sqrt {a^2+b^2} f}+\frac {(2 d) \int (c+d x) \log \left (1+\frac {2 b e^{e+f x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{\sqrt {a^2+b^2} f}\\ &=\frac {(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f}-\frac {(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f}+\frac {2 d (c+d x) \text {Li}_2\left (-\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^2}-\frac {2 d (c+d x) \text {Li}_2\left (-\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^2}-\frac {\left (2 d^2\right ) \int \text {Li}_2\left (-\frac {2 b e^{e+f x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{\sqrt {a^2+b^2} f^2}+\frac {\left (2 d^2\right ) \int \text {Li}_2\left (-\frac {2 b e^{e+f x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{\sqrt {a^2+b^2} f^2}\\ &=\frac {(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f}-\frac {(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f}+\frac {2 d (c+d x) \text {Li}_2\left (-\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^2}-\frac {2 d (c+d x) \text {Li}_2\left (-\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^2}-\frac {\left (2 d^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (\frac {b x}{-a+\sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{e+f x}\right )}{\sqrt {a^2+b^2} f^3}+\frac {\left (2 d^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {b x}{a+\sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{e+f x}\right )}{\sqrt {a^2+b^2} f^3}\\ &=\frac {(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f}-\frac {(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f}+\frac {2 d (c+d x) \text {Li}_2\left (-\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^2}-\frac {2 d (c+d x) \text {Li}_2\left (-\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^2}-\frac {2 d^2 \text {Li}_3\left (-\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^3}+\frac {2 d^2 \text {Li}_3\left (-\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )}{\sqrt {a^2+b^2} f^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 233, normalized size = 0.79 \begin {gather*} \frac {(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a-\sqrt {a^2+b^2}}\right )-(c+d x)^2 \log \left (1+\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )+\frac {2 d \left (f (c+d x) \text {PolyLog}\left (2,\frac {b e^{e+f x}}{-a+\sqrt {a^2+b^2}}\right )-d \text {PolyLog}\left (3,\frac {b e^{e+f x}}{-a+\sqrt {a^2+b^2}}\right )\right )}{f^2}-\frac {2 d \left (f (c+d x) \text {PolyLog}\left (2,-\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )-d \text {PolyLog}\left (3,-\frac {b e^{e+f x}}{a+\sqrt {a^2+b^2}}\right )\right )}{f^2}}{\sqrt {a^2+b^2} f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 180.00, size = 0, normalized size = 0.00 \[\int \frac {\left (d x +c \right )^{2}}{a +b \sinh \left (f x +e \right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 910 vs.
\(2 (270) = 540\).
time = 0.40, size = 910, normalized size = 3.07 \begin {gather*} -\frac {2 \, b d^{2} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} {\rm polylog}\left (3, \frac {a \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + a \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + {\left (b \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + b \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}}}{b}\right ) - 2 \, b d^{2} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} {\rm polylog}\left (3, \frac {a \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + a \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) - {\left (b \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + b \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}}}{b}\right ) - 2 \, {\left (b d^{2} f x + b c d f\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} {\rm Li}_2\left (\frac {a \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + a \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + {\left (b \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + b \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b} + 1\right ) + 2 \, {\left (b d^{2} f x + b c d f\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} {\rm Li}_2\left (\frac {a \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + a \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) - {\left (b \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + b \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b} + 1\right ) + {\left (b c^{2} f^{2} - 2 \, b c d f \cosh \left (1\right ) + b d^{2} \cosh \left (1\right )^{2} + b d^{2} \sinh \left (1\right )^{2} - 2 \, {\left (b c d f - b d^{2} \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (2 \, b \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + 2 \, b \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + 2 \, b \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} + 2 \, a\right ) - {\left (b c^{2} f^{2} - 2 \, b c d f \cosh \left (1\right ) + b d^{2} \cosh \left (1\right )^{2} + b d^{2} \sinh \left (1\right )^{2} - 2 \, {\left (b c d f - b d^{2} \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (2 \, b \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + 2 \, b \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) - 2 \, b \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} + 2 \, a\right ) - {\left (b d^{2} f^{2} x^{2} + 2 \, b c d f^{2} x + 2 \, b c d f \cosh \left (1\right ) - b d^{2} \cosh \left (1\right )^{2} - b d^{2} \sinh \left (1\right )^{2} + 2 \, {\left (b c d f - b d^{2} \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (-\frac {a \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + a \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + {\left (b \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + b \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b}\right ) + {\left (b d^{2} f^{2} x^{2} + 2 \, b c d f^{2} x + 2 \, b c d f \cosh \left (1\right ) - b d^{2} \cosh \left (1\right )^{2} - b d^{2} \sinh \left (1\right )^{2} + 2 \, {\left (b c d f - b d^{2} \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} \log \left (-\frac {a \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + a \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) - {\left (b \cosh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right ) + b \sinh \left (f x + \cosh \left (1\right ) + \sinh \left (1\right )\right )\right )} \sqrt {\frac {a^{2} + b^{2}}{b^{2}}} - b}{b}\right )}{{\left (a^{2} + b^{2}\right )} f^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (c + d x\right )^{2}}{a + b \sinh {\left (e + f x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (c+d\,x\right )}^2}{a+b\,\mathrm {sinh}\left (e+f\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________